//
// Created by Kai Wang on 2023/12/27.
//

#ifndef OPENCOS_ITEM_COMMENT_H
#define OPENCOS_ITEM_COMMENT_H

#include "item/item.h"

class ItemComment
{
public:
    ItemComment() = default;
    ItemComment(const Item &item, float mark, const std::string &comment);

    [[nodiscard]] const Item &get_item() const;
    [[nodiscard]] float       get_mark() const;
    [[nodiscard]] std::string get_comment() const;

private:
    // commented item
    Item item_;
    // should be between 0 and 10
    float mark_ = 0;
    // comment content
    std::string comment_;
};

#endif  // OPENCOS_ITEM_COMMENT_H
